<?php

    /**
     * Install
     *
     * @package      Core
     * @subpackage   Installer_Adapter
     *
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
     */
	class Core_Installer_Adapter_Config implements Core_Installer_Adapter_Interface
	{

	////////////////////////////////////////////////////////////////////////////
	//                                 Methods                                //
	////////////////////////////////////////////////////////////////////////////

        /**
         * Processes
         *
         * @param       array       $data
         * @return      string
         */
        public function process(array $data)
        {
            return
';<?php //die(\'\'); ?>
;for security reasons , don\'t remove or modify the first line

; Production site configuration data
[production]
debug                    = false
use_error_handler        = false

; Database settings
database.adapter         = '. $data['fieldAdapter'] .'
database.params.host     = '. $data['fieldHost'] .'
database.params.username = '. $data['fieldUsername'] .'
database.params.password = '. $data['fieldPassword'] .'
database.params.dbname   = '. $data['fieldDbname'] .'


; Drivers settings
drivers.authentification    = "Db"

; Compilation settings
compilation.force		 = false


; Error handling
error.showInFirebug 	 = false
error.logFile			 = error.log
error.email				 = root@example.com
error.messageLogFormat	 = "%date%\t[%code%]\t%msg%\t%file%\t%line%\n"
error.quietMessage		 = "A technical error has occured. Sorry for this trouble."
error.emailHeaders		 = "Content-Type: text/plain; charset=UTF-8\nFrom: root@example.com\nX-Mailer: PHP\nX-Priority: 1 (Highest)\n"

; Usable keywords : ECHO, ECHOQUIET, EXIT, LOGFILE, SYSLOG, MAIL, TRACE
error.keywords.default   = ECHO EXIT
error.keywords.error     = ECHO EXIT
error.keywords.warning   = ECHO
error.keywords.notice    = ECHO
error.keywords.strict    = ECHO
error.keywords.exception = ECHO


; Module settings
modules.start.name	 	 		= Core
modules.start.action	 		= Index
modules.default.action	 		= Index


; View settings
view.showLog   			 		= true
view.locale 			 		= en_US
view.encoding     		 		= UTF-8


; "simple" or "significant"
urlengine.engine         			= Simple
urlengine.basePath       			= '. $data['basePath'] .'
urlengine.wwwpath         			= '. $data['basePath'] .'
urlengine.multiview					= false
urlengine.defaultEntrypoint			= index
urlengine.entrypointExtension		= .php
urlengine.simple_urlengine_https	=
urlengine.significantFile			= urls.xml
urlengine.noActionFound			    = "core~error:notFound"

; If you have a rewrite rules which move the pathinfo into a queryparameter
; like RewriteRule ^(.*)$ index.php/?pathinfo=$1 [L,QSA]
; (it is necessary in some CGI configuration)
; then you should set pathInfoInQueryParameter to the name of the parameter
; which contains the pathinfo value ("pathinfo" for example)
; leave empty if you don\'t have to create such rewrite rules.
urlengine.pathInfoInQueryParameter	=

; Usable values : SCRIPT_NAME, REDIRECT_URL, ORIG_SCRIPT_NAME
urlengine.scriptNameServerVariable	= SCRIPT_NAME

; simple URL engine entries
; script_name_without_suffix = "list of action selectors  separated by spaces"
; USAGE :
;	module~action@request_type : specific action in a specific module with a specific type
;	module~*@request_type : all actions in the module within the specified type
;	@request_type : all actions of all modules within the specified type

simple_urlengine_entrypoints.xml	= "@xml"
simple_urlengine_entrypoints.json	= "@json"
simple_urlengine_entrypoints.index	= "@http"

simple_urlengine_entrypoints.testnews = "Unittests~Urlsig:url2@http Unittests~Urlsig:url3@http"
simple_urlengine_entrypoints.foo/bar  = "Unittests~Urlsig:url4@http"
simple_urlengine_entrypoints.news     = "new~*@http"

timezone                 	= "Europe/Paris"



; Staging site configuration data inherits from production and
; overrides values as necessary
[staging : production]
debug                    	= true
use_error_handler       	= false

; Error handling
error.showInFirebug 		= true';
        }
	}
